//课程
Mock.mock('/course/list', {
    'code':'200',
    'data|1-10':[{
        "id":"@uuid",
        "title": "@cparagraph",
        "price|1-1000": 100,
        "priceType|1-3": 1, //这里应该是枚举收费类型
        "watchPeople|1-10000": 120, //观看人数
        "playerCount|1-1000": 122, //播放次数
        "poster": Mock.Random.image('319x220'), //封面照
        "catalog": "", //分类
    }],
    msg:''
});
Mock.mock('/course/info', {
    'code':'200',
    'data':{
        "id":"@uuid",
        "title":"@cparagraph",
        "price":1200,
        "priceType":"",//这里应该是枚举收费类型
        "watchPeople|1-10000": 120, //观看人数
        "playerCount|1-1000": 122, //播放次数
        "poster": Mock.Random.image('640x360'), //封面照
        "catalog":"",//分类
        "video_url":"",//视频地址 待确认是否重新接口获得
        "introduction":"@cparagraph",//课程介绍
        "isCollect|1-2":false//是否收藏
    },
    msg:''
});

//教授
Mock.mock('/professor/list', {
    'code':'200',
    'data|1-10':[{
        "id":"@uuid",
        "name":"@cname",
        "head":Mock.Random.image('319x220'),//封面照
        "introduction":"@cparagraph",
        "summary|1-10000":120,//观看人数
        "gold_medals|1-2":false,//金牌教授
        "catalog":"",//分类
    }],
    msg:''
});


Mock.mock('/banner/list', {
    'code':'200',
    'data|2-6':[{
        "poster":Mock.Random.image('640x260'),
        "title":'',
        "link":''
    }],
    msg:''
});

Mock.mock('/user/info', {
    'code':'200',
    'data':{
        "userId":"@uuid",
        "name":"@cname",
        "headimg":Mock.Random.image('200x200'),//头像
        "collectNumber|1-100":12,//收藏数
        "courseNumber|1-100":12,//课程数
        "role":""
    },
    msg:''
});

Mock.mock('/common/send_msg', {
    'code':'200',
    'data':{

    },
    msg:'发送成功'
});

Mock.mock('/course/my', {
    'code':'200',
    'data|2-10':[{
        "title":"@title",
        "date":"@date",
        "comment":{
            "headimg":Mock.Random.image('42x42'),
            "content":"@cparagraph",
            "score|0-5":"1",
            "name":"@cname",
            "date":"@date"
        }//有评价就有评价对象
    }],
    msg:''
});




